package cn.alcatraz.department.mapper;

import cn.alcatraz.department.domain.Department;
import cn.alcatraz.department.query.DepartmentQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
//@Mapper
public interface DepartmentMapper {

    // 查询所有
    List<Department> loadAll();

    // 根据Id查询
    Department loadById(Long id);

    // 根据Id删除
    void delete(Long id);

    // 新增
    void save(Department department);

    // 根据Id修改
    void update(Department department);

    // 分页+高级查询
    List<Department> queryData(DepartmentQuery departmentQuery);

    // 查询总条数
    Integer queryCount(DepartmentQuery departmentQuery);

}
